package com.dms.vuemusic.service.impl;

import com.dms.vuemusic.mapper.MusicMapper;
import com.dms.vuemusic.pojo.Music;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MusicServiceImpl implements MusicService {
    @Autowired
    MusicMapper musicMapper;
    @Override
    public void insertMusic(Music music) {
        musicMapper.insertMusic(music);
    }

    @Override
    public void deleteMusic(Music music) {
        musicMapper.deleteMusic(music);
    }

    @Override
    public Music searchRecord(Music music) {
        return musicMapper.searchRecord(music);
    }

    @Override
    public List<Music> searchRecordList(String userName) {
        return musicMapper.searchRecordList(userName);
    }
}
